package com.lizemin.controller;

import com.lizemin.entity.BaseEntity;
import com.lizemin.entity.RespBean;
import com.lizemin.entity.Student;
import com.lizemin.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lzm
 * @date 2025/3/23 11:42
 * @description
 */
@RestController
@RequestMapping("/student")
public class StudentController {

    @Autowired
    IStudentService studentService;

    @GetMapping("/getStudents")
    public RespBean getStudents() {
        BaseEntity reqParam = new BaseEntity();
        List<Student> students = studentService.getStudents(reqParam);
        return RespBean.success(students);
    }

}
